import React, {Component} from 'react'
import ReactDOM from 'react-dom'
import { Relax } from 'iflux2'
import NewsList from './news-list'
import NewsEdit from './news-edit'

@Relax
export default class Content extends Component {

    static defaultProps = {
        status: ''
    }

    componentDidMount(){

    }

    render(){
        const { status } = this.props;
        return status ?  <NewsEdit /> : <NewsList /> 
    }
}